removeChild

abstract fun removeChild(childNode: Node): Boolean

Removes the given childNode of the current node from the DOM. The removed childNode still exists, but is no longer part of the DOM. You can reuse the removed node later in your code via the childNode object reference.

Return

true if the given node was successfully removed

Parameters

childNode

the existing node to be removed

Throws

when this node is closed